package map.asteroids;

import gameStates.absGamesStates.AbsIngameState;
import logic.nodes.lod.LODNode;

import com.jme.scene.Node;

public class Asteroid extends LODNode {
	
	private static final long serialVersionUID = 1L;
	
	protected AsteroidField field;
	protected int asteroidID;
	
	public Asteroid(String modelPath, String title, Node model, AsteroidField field, int asteroidID, 
			AbsIngameState ingameState) {
		super(modelPath, title, model, ingameState);
		this.field = field;
		this.asteroidID = asteroidID;
	}
	
	@Override
	public boolean canMove() {	return false; }
	
	@Override
	public float getMass() { return 100f; }
	
	public AsteroidField getAsteroidField() { return field; }
	
	@Override
	protected float getDistanceFactor() { return 0.08f; }
	
	public int getAsteroidID() { return asteroidID; }
}